package com.xs.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xs.dao.UserDao;
import com.xs.entity.User;
import com.xs.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService extends ServiceImpl<UserDao, User> implements IUserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> recommandUser() {
        return userDao.recommandUser();
    }

    @Override
    public Integer findReadNumber(Integer id) {
        return userDao.findReadNumber(id);
    }

    @Override
    public Integer findCollectionNumber(Integer id) {
        return userDao.findCollectionNumber(id);
    }

    @Override
    public User UserDataFindByArticle(Integer aid) {
        return userDao.findUserByArticleId(aid);
    }
}
